package com.rf.richfitwheel.admin.sys.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
public class User implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 8331569470045030625L;

	/**
	 * 主键
	 */
    private String id;

    /**
	 * 用户名
	 */
    private String username;

    /**
	 * 密码
	 */
    private String password;

    /**
	 * 盐
	 */
    private String salt;

    /**
	 * 邮箱
	 */
    private String email;

    /**
	 * 手机
	 */
    private String mobile;

    /**
	 * 状态
	 */
    private String status;

    /**
	 * 创建人
	 */
    private String createUserId;

    /**
	 * 创建时间
	 */
    private Date createTime;

    /**
	 * 员工编号
	 */
    private String staffId;

    /**
	 * erp机构编号
	 */
    private String enterpriseId;

    /**
	 * erp机构名称
	 */
    private String enterpriseName;

    /**
	 * 姓名
	 */
    private String staffName;

    /**
	 * 证件类型
	 */
    private String idType;

    /**
	 * 证件号
	 */
    private String idNo;

    /**
	 * 最后修改人
	 */
    private String lastChangeder;

    /**
	 * 最后修改时间
	 */
    private Date lastChnagedTime;

    /**
	 * 最后改没密码时间
	 */
    private Date lastChangedPwdTime;

    /**
	 * 登录错误次数
	 */
    private BigDecimal errorTime;

    /**
	 * 登录状态
	 */
    private String loginStatus;

    /**
	 * 提醒修改密码周期(单位：天)
	 */
    private BigDecimal alterTime;

    /**
	 * 最后登录时间
	 */
    private Date loginTime;

    /**
	 * 排序
	 */
    private Integer orderNum;

    /**
	 * 审核状态
	 */
    private String chkStatus;

    /**
	 * 组织机构
	 */
    private String orgId;

    private String orgCode;

    /**
	 * 当前皮肤
	 */
    private String skin;

    /**
	 * 对接外部系统识别账号
	 */
    private String accountName;

    /**
	 * 上次登录终端：1-PC、2-APP
	 */
    private String loginTerminal;

    /**
	 * 租户
	 */
    private String tenantId;

    /**
     * 用户类型；1:财务用户 2:业务用户
     */
    private String type;
    /**
     * 关联类型；1:本系统关联 2:标准平台同步关联
     */
    private String relationType;

    /**
     * 密级
     */
    private Integer secretLevel;

    public User(String id, String username, String password, String salt, String email, String mobile, String status, String createUserId, Date createTime, String staffId, String enterpriseId, String enterpriseName, String staffName, String idType, String idNo, String lastChangeder, Date lastChnagedTime, Date lastChangedPwdTime, BigDecimal errorTime, String loginStatus, BigDecimal alterTime, Date loginTime, Integer orderNum, String chkStatus, String orgId, String orgCode, String skin, String accountName, String loginTerminal, String tenantId, String type, String relationType, Integer secretLevel) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.salt = salt;
        this.email = email;
        this.mobile = mobile;
        this.status = status;
        this.createUserId = createUserId;
        this.createTime = createTime;
        this.staffId = staffId;
        this.enterpriseId = enterpriseId;
        this.enterpriseName = enterpriseName;
        this.staffName = staffName;
        this.idType = idType;
        this.idNo = idNo;
        this.lastChangeder = lastChangeder;
        this.lastChnagedTime = lastChnagedTime;
        this.lastChangedPwdTime = lastChangedPwdTime;
        this.errorTime = errorTime;
        this.loginStatus = loginStatus;
        this.alterTime = alterTime;
        this.loginTime = loginTime;
        this.orderNum = orderNum;
        this.chkStatus = chkStatus;
        this.orgId = orgId;
        this.orgCode = orgCode;
        this.skin = skin;
        this.accountName = accountName;
        this.loginTerminal = loginTerminal;
        this.tenantId = tenantId;
        this.type = type;
        this.relationType = relationType;
        this.secretLevel = secretLevel;
    }

    public User() {
        super();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt == null ? null : salt.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId == null ? null : createUserId.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getStaffId() {
        return staffId;
    }

    public void setStaffId(String staffId) {
        this.staffId = staffId == null ? null : staffId.trim();
    }

    public String getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(String enterpriseId) {
        this.enterpriseId = enterpriseId == null ? null : enterpriseId.trim();
    }

    public String getEnterpriseName() {
        return enterpriseName;
    }

    public void setEnterpriseName(String enterpriseName) {
        this.enterpriseName = enterpriseName == null ? null : enterpriseName.trim();
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName == null ? null : staffName.trim();
    }

    public String getIdType() {
        return idType;
    }

    public void setIdType(String idType) {
        this.idType = idType == null ? null : idType.trim();
    }

    public String getIdNo() {
        return idNo;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo == null ? null : idNo.trim();
    }

    public String getLastChangeder() {
        return lastChangeder;
    }

    public void setLastChangeder(String lastChangeder) {
        this.lastChangeder = lastChangeder == null ? null : lastChangeder.trim();
    }

    public Date getLastChnagedTime() {
        return lastChnagedTime;
    }

    public void setLastChnagedTime(Date lastChnagedTime) {
        this.lastChnagedTime = lastChnagedTime;
    }

    public Date getLastChangedPwdTime() {
        return lastChangedPwdTime;
    }

    public void setLastChangedPwdTime(Date lastChangedPwdTime) {
        this.lastChangedPwdTime = lastChangedPwdTime;
    }

    public BigDecimal getErrorTime() {
        return errorTime;
    }

    public void setErrorTime(BigDecimal errorTime) {
        this.errorTime = errorTime;
    }

    public String getLoginStatus() {
        return loginStatus;
    }

    public void setLoginStatus(String loginStatus) {
        this.loginStatus = loginStatus == null ? null : loginStatus.trim();
    }

    public BigDecimal getAlterTime() {
        return alterTime;
    }

    public void setAlterTime(BigDecimal alterTime) {
        this.alterTime = alterTime;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getChkStatus() {
        return chkStatus;
    }

    public void setChkStatus(String chkStatus) {
        this.chkStatus = chkStatus == null ? null : chkStatus.trim();
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId == null ? null : orgId.trim();
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode == null ? null : orgCode.trim();
    }

    public String getSkin() {
        return skin;
    }

    public void setSkin(String skin) {
        this.skin = skin == null ? null : skin.trim();
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName == null ? null : accountName.trim();
    }

    public String getLoginTerminal() {
        return loginTerminal;
    }

    public void setLoginTerminal(String loginTerminal) {
        this.loginTerminal = loginTerminal == null ? null : loginTerminal.trim();
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId == null ? null : tenantId.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getRelationType() {
        return relationType;
    }

    public void setRelationType(String relationType) {
        this.relationType = relationType == null ? null : relationType.trim();
    }

    public Integer getSecretLevel() {
        return secretLevel;
    }

    public void setSecretLevel(Integer secretLevel) {
        this.secretLevel = secretLevel;
    }
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("User [id=");
		builder.append(id);
		builder.append(", username=");
		builder.append(username);
		builder.append(", password=");
		builder.append(password);
		builder.append(", salt=");
		builder.append(salt);
		builder.append(", email=");
		builder.append(email);
		builder.append(", mobile=");
		builder.append(mobile);
		builder.append(", status=");
		builder.append(status);
		builder.append(", createUserId=");
		builder.append(createUserId);
		builder.append(", createTime=");
		builder.append(createTime);
		builder.append(", staffId=");
		builder.append(staffId);
		builder.append(", enterpriseId=");
		builder.append(enterpriseId);
		builder.append(", enterpriseName=");
		builder.append(enterpriseName);
		builder.append(", staffName=");
		builder.append(staffName);
		builder.append(", idType=");
		builder.append(idType);
		builder.append(", idNo=");
		builder.append(idNo);
		builder.append(", lastChangeder=");
		builder.append(lastChangeder);
		builder.append(", lastChnagedTime=");
		builder.append(lastChnagedTime);
		builder.append(", lastChangedPwdTime=");
		builder.append(lastChangedPwdTime);
		builder.append(", errorTime=");
		builder.append(errorTime);
		builder.append(", loginStatus=");
		builder.append(loginStatus);
		builder.append(", alterTime=");
		builder.append(alterTime);
		builder.append(", loginTime=");
		builder.append(loginTime);
		builder.append(", orderNum=");
		builder.append(orderNum);
		builder.append(", chkStatus=");
		builder.append(chkStatus);
		builder.append(", orgId=");
		builder.append(orgId);
		builder.append(", skin=");
		builder.append(skin);
		builder.append(", accountName=");
		builder.append(accountName);
		builder.append(", loginTerminal=");
		builder.append(loginTerminal);
		builder.append(", tenantId=");
		builder.append(tenantId);
        builder.append(", type=");
        builder.append(type);
        builder.append(", relationType=");
        builder.append(relationType);
        builder.append(", secretLevel=");
        builder.append(secretLevel);
		builder.append("]");
		return builder.toString();
	}


}
